#ifndef _GBK_
#define _GBK_

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include "st7789.h"
#include "fontx.h"
#include "decode_image.h"
#include "pngle.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_err.h"
#include "esp_log.h"
#include "esp_system.h"
#include "esp_vfs.h"
#include "esp_spiffs.h"

#define  u16 uint16_t
#define  u8 uint8_t

void Lcd_draw_chinese(TFT_t * dev,uint16_t x, uint16_t y,  uint16_t color,char * str);
void LCD_ShowChinese_buff(TFT_t * dev,uint16_t x, uint16_t y,  uint16_t color,unsigned char * bin);
void Get_HzMat(char *code,unsigned char *mat,unsigned char size);
void Show_Str_Mid(u16 x,u16 y,char *str,u8 size,u8 len,uint16_t color);
void Show_Str(u16 x,u16 y,u16 width,u16 height,char *str,u8 size, uint16_t color);
void LCD_fast_ShowChinese_buff(TFT_t * dev,uint16_t x, uint16_t y,  uint16_t color,unsigned char * bin);
void LCD_fast_ShowChinese_buff(TFT_t * dev,uint16_t x, uint16_t y,  uint16_t color,unsigned char * bin);
void Show_Str_Ram(u16 x,u16 y,u16 width,u16 height,char *str,u8 size, uint16_t color,uint16_t *data);
void Show_Mid_Ram(u16 x,u16 y,char*str,u8 size,u8 len,uint16_t color,uint16_t *data,int w,int h);
void LCD_draw_ram_chinese(TFT_t * dev,uint16_t x, uint16_t y,  uint16_t color,char * str,uint16_t *data,int w);
#endif